package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.TDevice;
import com.ruoyi.system.dto.req.DeviceReqDto;
import com.ruoyi.system.dto.req.InstitutionReqDto;
import com.ruoyi.system.dto.resq.DeviceRespDto;
import com.ruoyi.system.dto.resq.TInstitutionRespDto;
import com.ruoyi.system.mapper.TInstitutionMapper;
import com.ruoyi.system.service.TDeviceService;
import com.ruoyi.system.mapper.TDeviceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author dell
* @description 针对表【t_device(设备登记信息表)】的数据库操作Service实现
* @createDate 2023-11-14 17:38:34
*/
@Service
public class TDeviceServiceImpl extends ServiceImpl<TDeviceMapper, TDevice>
    implements TDeviceService{

    @Autowired
    private TDeviceMapper tDeviceMapper;

    @Override
    public List<DeviceRespDto> selectDeviceList(DeviceReqDto deviceReqDto) {

        return tDeviceMapper.selectDeviceList(deviceReqDto);
    }

    @Override
    public DeviceRespDto selectOneByDeviceId(String deviceId) {

        return tDeviceMapper.selectOneByDeviceId(deviceId);
    }
}




